/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package services.impl;

import domain.Hotelroom;
import domain.Products;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import services.interfaces.IProductsServices;

/**
 *
 * @author amega
 */
@Stateless
@LocalBean
public class ProductsServices extends GenericServiceImpl<Products> implements IProductsServices{
    
    @PersistenceContext(unitName="RGHPU")
    private EntityManager em;
    
    public ProductsServices(){
        super(Products.class);
    }
    
    @Override
    protected EntityManager getEntityManager() {
        return em;
    }
    
}
